#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr[20] = { 0 };
	int i = 0, count = 0;
	double sum = 0;
	for (int i = 0;i < 20;i++)
	{
		scanf("%d", &arr[i]);
		if (arr[i] < 0)
		{
			break;
		}
		sum += arr[i];
		count++;
	}
	double average = sum / count;  
	printf("ave=%.2f\n", average);
	//printf("%d",count);
	for (int i = 0;i < count;i++)
	{
		if (arr[i] < average)
		{
			printf("%6.1f", (double)arr[i]);
		}
	}
	return 0;
}